﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data.Mapping {
    public partial class TokenInfoMap : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<TokenInfo> {
        public TokenInfoMap() {
            // table
            ToTable("mc_TokenInfo", "dbo");

            // keys
            HasKey(t => t.Id);

            // Properties
            Property(t => t.Id).HasColumnName("Id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None).IsRequired();
            Property(t => t.ExpiresIn).HasColumnName("ExpiresIn").IsRequired();
            Property(t => t.ExpiresDate).HasColumnName("ExpiresDate").IsRequired();
            Property(t => t.AccessToken).HasColumnName("AccessToken").HasMaxLength(2000).IsRequired();
        }
    }
}
